.container {
    background: #eee;
    min-height: calc(100vh - 60px);
}

#home, #class, #cart, #my {
    display: none;
}

/* 分类页面样式 */

#class .class-header {
    height: 40px;
    line-height: 40px;
    background-color: #fff;
    font-size: 16px;
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    border-bottom: 1px solid #ddd;
}

#class .class-header a {
    width: 20px;
    height: 15px;
    background: url(../img/search_page.png) no-repeat 50%;
    background-size: 14px;
    position: absolute;
    right: 10px;
    top: 10px;
}

#class .class-tabs {
    display: flex;
    justify-content: space-between;
    padding-top: 40px;
}

#class .class-tabs .titles {
    width: 25%;
    height: calc(100vh - 40px - 70px);
    overflow-y: scroll;
}

#class .class-tabs .titles .title {
    height: 40px;
    line-height: 40px;
    text-align: center;
}

#class .class-tabs .titles .title.active {
    border-left: 2px solid #ef4040;
    background: #fff;
}

#class .class-tabs>li.active {
    background-color: #fff;
}

#class .class-tabs .lists {
    background-color: #fff;
    width: 75%;
    height: calc(100vh - 40px - 70px);
    overflow-y: scroll;
    padding: 10px;
}

#class .class-tabs .lists .list {
    display: none;
}

#class .class-tabs .lists .list.active {
    display: block;
}

#class .class-tabs .lists .list>header {
    background-image: url(/img/15963587.jpg);
    background-repeat: no-repeat;
    background-size: 100% 60px;
    height: 60px;
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

#class .class-tabs .lists .list>header a {
    color: #fff;
    font-size: 16px;
    text-decoration: none;
    font-weight: 700;
}

#class .class-tabs .lists .list ul.sub-class li header {
    height: 40px;
    line-height: 40px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}

#class .class-tabs .lists .list ul.sub-class li header a {
    width: 20px;
    background: url(../img/area_no_new.png) no-repeat center 16px;
    background-size: 13px 6px;
}

#class .class-tabs .lists .list ul.sub-class.active li header a {
    width: 20px;
    background: url(../img/area_no_new_on.png) no-repeat center 16px;
    background-size: 13px 6px;
}

#class .class-tabs .lists .list ul.sub-class li ul {
    display: flex;
    flex-wrap: wrap;
    display: none;
}

#class .class-tabs .lists .list ul.sub-class.active li ul {
    display: flex;
}

#class .class-tabs .lists .list ul.sub-class li ul li {
    width: 33.333333%;
    text-align: center;
    height: 40px;
    line-height: 40px;
    border-right: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

/* 我的页面样式 */

#my .my-header {
    height: 169px;
    background: #fff url(../img/my_bg_img.png) no-repeat 0 0;
    background-size: 100% 70%;
    position: relative;
}

#my .my-header .user {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -42%);
    text-align: center;
}

#my .my-header .user p {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    padding: 5px;
    background: hsla(0, 0%, 86%, .4);
    box-shadow: 0 0 2px #ddd;
}

#my .my-header .user p img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    padding: 3px;
    background: hsla(0, 0%, 78%, .4);
}

#my .my-header .user h2 {
    font-weight: 600;
}

#my .my-header .user .pay_num {
    display: inline-block;
    margin-top: 5px;
}

#my .my-header .logout {
    position: absolute;
    right: 10px;
    top: 10px;
    color: #fff;
    text-decoration: none;
}

#my .my-order {
    background: #fff;
    margin-top: 10px;
}

#my .my-order p {
    height: 45px;
    line-height: 45px;
    border-bottom: 1px solid #ddd;
    padding-left: 30px;
    background: url(../img/icon_my_order.png) no-repeat 10px;
    background-size: 12px 14px;
    padding-right: 16px;
}

#my .my-order p a {
    float: right;
    background: url(../img/more_tip.png) no-repeat 100%;
    background-size: 8px 7px;
    padding-right: 15px;
    text-decoration: none;
    color: #474747;
}

#my .my-order ul {
    display: flex;
    justify-content: space-between;
}

#my .my-order ul li {
    width: 33.33333%;
}

#my .my-order ul li a {
    width: 100%;
    display: block;
    text-align: center;
    padding-top: 50px;
    text-decoration: none;
    color: #999;
    padding-bottom: 10px;
}

#my .my-order ul li a.pay {
    background: url(../img/icon_pay.png) no-repeat center 18px;
    background-size: 23px;
}

#my .my-order ul li a.comment {
    background: url(../img/icon_ping.png) no-repeat center 18px;
    background-size: 23px;
}

#my .my-order ul li a.cancel {
    background: url(../img/icon_cancel.png) no-repeat center 18px;
    background-size: 23px;
}

#my .business ul {
    margin-top: 10px;
}

#my .business ul li {
    height: 45px;
    line-height: 45px;
    background-color: #fff;
    border-bottom: 1px solid #ddd;
}

#my .business ul li:nth-of-type(1) p {
    background: url(../img/icon_my_child.png) no-repeat 8px 11px;
    background-size: 20px 20px;
}

#my .business ul li:nth-of-type(2) p {
    background: url(../img/icon_my_pay.png) no-repeat 8px 11px;
    background-size: 20px 20px;
}

#my .business ul li:nth-of-type(3) p {
    background: url(../img/icon_listen.png) no-repeat 8px 11px;
    background-size: 20px 20px;
}

#my .business ul li p {
    padding-right: 10px;
    background-color: #fff;
    padding-left: 35px;
}

#my .business ul li p a {
    float: right;
    background: url(../img/pay_go.png) no-repeat 100%;
    background-size: 5px 8px;
    color: #999;
    padding-right: 15px;
}

#my .business ul.setting li:nth-of-type(1) p {
    background: url(../img/icon_set.png) no-repeat 8px 11px;
    background-size: 20px 20px;
}

/* 底部选项卡样式 */

ul.tabs {
    list-style: none;
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: row nowrap;
}

ul.tabs>li {
    width: 25%;
    text-align: center;
    height: 60px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

ul.tabs>li>i {
    width: 20px;
    height: 20px;
    display: block;
    background-repeat: no-repeat;
    background-size: contain;
    margin-bottom: 3px;
}

ul.tabs>li.home>i {
    background-image: url(../img/icon_tab_home.png);
}

ul.tabs>li.class>i {
    background-image: url(../img/icon_tab_class.png);
}

ul.tabs>li.cart>i {
    background-image: url(../img/icon_cart.png);
}

ul.tabs>li.my>i {
    background-image: url(../img/icon_tab_my.png);
}

ul.tabs>li.home>i.active {
    background-image: url(../img/icon_tab_home_on.png);
}

ul.tabs>li.class>i.active {
    background-image: url(../img/icon_tab_class_on.png);
}

ul.tabs>li.cart>i.active {
    background-image: url(../img/icon_cart_on.png);
}

ul.tabs>li.my>i.active {
    background-image: url(../img/icon_tab_my_on.png);
}

/* 主页的样式 */

#home {
    padding-bottom: 70px;
}

#home .home-header {
    color: #fff;
    background-color: #ef3f41;
    height: 45px;
    line-height: 45px;
    padding: 0 10px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 11;
}

#home .home-header .city {
    padding-right: 30px;
    background: url(../img/city_change.png) no-repeat 35px 17px;
    background-size: 12px 7px;
}

#home .home-header .search {
    background: url(../img/index_header_sear.png) no-repeat 10px 7px #a20407;
    background-size: 16px;
    flex-grow: 1;
    border-radius: 20px;
    height: 30px;
    line-height: 32px;
    margin: 0 15px 0 10px;
    padding-left: 35px;
}

#home .swiper-container {
    width: 100%;
    height: 150px;
    margin-top: 45px;
}

#home .swiper-container img {
    width: 100%;
    height: 100%;
}

#home .course {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    background-color: #fff;
}

#home .course .item {
    width: 20%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px;
    color: #474747;
    text-decoration: none;
}

#home .course .item p {
    margin-top: 5px;
}

#home .collage, #home .time, #home .common {
    background-color: #fff;
    margin-top: 10px;
    padding: 0 10px;
}

#home .collage .col-title, #home .time .time-title, #home .common .common-title {
    display: flex;
    justify-content: space-between;
    height: 40px;
    line-height: 40px;
}

#home .collage .col-title span, #home .time .time-title span, #home .common .common-title span {
    padding-left: 25px;
    background: url(../img/icon_jigou.png) no-repeat left center;
    background-size: 15px;
    font-weight: 700;
}

#home .time .time-title span {
    background: url(../img/icon_time.png) no-repeat left center;
    background-size: 15px;
}

#home .common .common-title span {
    background: url(../img/icon_middle.png) no-repeat left center;
    background-size: 15px;
}

#home .collage .col-title a, #home .time .time-title a, #home .common .common-title a {
    color: #999;
    text-decoration: none;
    background: url(../img/icon_more.jpg) no-repeat right center;
    background-size: 10px;
    padding-right: 20px;
}

#home .collage .col-list, #home .time .time-list, #home .common .common-list {
    display: flex;
    justify-content: space-between;
}

#home .collage .col-list .item {
    width: 25%;
    height: 25%;
    margin-right: 10px;
    color: #474747;
    text-decoration: none;
}

#home .time .time-list .item, #home .common .common-list .item {
    width: 50%;
    height: 50%;
    margin-right: 10px;
    color: #474747;
    text-decoration: none;
}

#home .collage .col-list .item:last-of-type, #home .time .time-list .item:last-of-type, #home .common .common-list .item:last-of-type {
    margin-right: 0;
}

#home .collage .col-list .item img, #home .time .time-list .item img, #home .common .common-list .item img {
    width: 100%;
    height: 100%;
    display: block;
}

#home .collage .col-list .item p {
    text-align: center;
}

#home .time .time-list .item .info, #home .common .common-list .item .info {
    position: relative;
}

#home .time .time-list .item .info p, #home .common .common-list .item .info p {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, .6);
    color: #fff;
    height: 23px;
    line-height: 23px;
    text-align: center;
}

#home .time .time-list .item .rest-time {
    text-align: center;
    padding: 3px 0;
}

#home .common ul {
    display: flex;
    flex-wrap: wrap;
}

#home .common ul li {
    width: 50%;
    height: 60px;
    line-height: 60px;
    border-bottom: 1px solid #eee;
    border-right: 1px solid #eee;
}

#home .common ul li a {
    text-decoration: none;
    color: #474747;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#home .common ul li a span {
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#home .common ul li a span img {
    width: 25px;
}